import { request } from '/@/utils/service';
import { UserPageQuery, AddReq, DelReq, EditReq, InfoReq, PageQuery } from '@fast-crud/fast-crud';

export const apiPrefix = '/api/trading_pairs/';

export function GetList(obj: PageQuery) {
  return request({
    url: apiPrefix + 'data/',
    method: 'get',
    params: obj
  });
}

export function DeleteById(obj: DelReq) {
  return request({
    url: apiPrefix + 'delete/',
    method: 'delete',
    data: obj
  });
}